<!DOCTYPE html>
<html>
<head>
    <title>anta-拳释英雄拼手速，找星战icon赢邹市明签名T恤</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="robots" content="all">

    <!--<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width,  initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />-->
    <!--<meta name="apple-mobile-web-app-capable" content="yes" />-->
    <!--<meta name="apple-mobile-web-app-status-bar-style" content="black" />-->
    <!--<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />-->
    <!--<meta http-equiv="x-ua-compatible" content="IE=edge" />-->
    <style>
        @-ms-viewport { width:device-width; }
        @media only screen and (min-device-width:800px) { html { overflow:hidden; } }
        html { height:100%;}
        body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF;-webkit-tap-highlight-color:rgba(0,0,0,0);
            -ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;
        }
        *{margin:0;padding:0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
        li{list-style: none;   float: left;  }
        a{text-decoration:none;}
        a,button,input{-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0;  }
        input{ border:0 none;-webkit-appearance:none;   background: transparent;color:white; }
        @font-face {
            font-family: 'icomoon';
            src:url('/panos/huawei/fonts/icomoon.eot?48eqj1');
            src:url('/panos/huawei/fonts/icomoon.eot?48eqj1#iefix') format('embedded-opentype'),
            url('/panos/huawei/fonts/icomoon.ttf?48eqj1') format('truetype'),
            url('/panos/huawei/fonts/icomoon.woff?48eqj1') format('woff'),
            url('/panos/huawei/fonts/icomoon.svg?48eqj1#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
        }
        [class^="icon-"], [class*=" icon-"] {
            font-family: 'icomoon';
            speak: none;
            font-style: normal;
            font-weight: normal;
            font-variant: normal;
            text-transform: none;
            line-height: 1;
            /* Better Font Rendering =========== */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        .icon-close:before {  content: "\f00d";  }
        .icon-venus:before {  content: "\f221";  }
        .icon-mars:before {  content: "\f222";  }
        .icon-crosshairs:before {  content: "\f05b";  }
        .icon-spinner:before {  content: "\f110";  }
        /*字体font设置end*/
        .comment-modal-mobile { display: block; position: absolute; bottom: 0; width: 100%; padding: 10px; background-color: rgba(0,0,0,.5); }
        input{border:0 none; -webkit-appearance:none; background: transparent; color:white; float: left; }
        input[type=text]{border:1px solid #00a3d8;height:35px;}
        .comment-modal-mobile ul{float: right;overflow: hidden;}
        .comment-modal-mobile a{ color: #00a3d8; width: 60px;display: block; border-color: #00a3d8;  background-color: transparent; height: 35px; line-height: 35px; text-align: center;vertical-align: middle; cursor: pointer;  background-image: none;  border-width: 1px;  border-style: solid; white-space: nowrap; -webkit-user-select: none; }
        .comment_ul li:first-child { margin-right:10px;  }
        .comment_ul li:first-child  a.cur{ border-color: #B0B0B0; color:#B0B0B0;  }
        .wx_y,.wx_n{display: none;}
        .wx_n ul{ float:none; width:170px;margin:0 auto; }
        .wx_n ul li:first-child a{ width:100px; background: #00a3d8; color:white; }
        .no_wx_p{height: 35px;line-height: 35px; margin-bottom: 10px;color: #fff;text-align: center;  }
        .comment-modal-mobile .hidden{  display: none;  }
        .comment_ul li:first-child  a.cur{ border-color: #B0B0B0; color:#B0B0B0;   }
        .area_tip_box{ position: absolute;  bottom:54px; left:38%;  -webkit-transform: translate(-50%);-ms-transform: translate(-50%);transform: translate(-50%); width:80%;   display: none;cursor:pointer; }
        .area_tip_box img{width:100%;}
        .hw_tip_box{ position: absolute;  bottom:54px; left:38%;  -webkit-transform: translate(-50%);-ms-transform: translate(-50%);transform: translate(-50%); width:80%;   display: none;cursor:pointer; }
        .hw_tip_box img{width:100%;}
        /*html文件*/
        .load_big{display: none; position: absolute;z-index: 800;  width: 100%;  height: 101%; top: 0px; left: 0px; z-index: 99999999; }
        .load_close{ background: url(/panos/huawei/imgs/load_close.png) no-repeat center center;
            background-size: 53px 53px;  position: absolute; right: 0px; height: 53px; width: 53px; cursor: pointer;top: 0px;display: block;}
        .load_inner{width:100%;height:100%;}

        /*fans按钮和fans列表*/
        .fans_btn,.game_btn{  top:5px;right:2px;  background:#1D6699 ;  width: 50px;  height: 50px;border-radius: 50%;  text-align: center;color: white;cursor:pointer;
        }
        /*.fans_btn:hover{color: #F74C92;background:white ;}*/
        .fans_btn .icon-user{  font-size: 28px;  line-height: 30px;  }
        .fans_btn p{font-size:12px;}
        .fans_list_box{  position: absolute;  z-index:20000;  top:50%;  left:50%;  margin-top:-200px;  margin-left:-150px;  height:400px;  width:300px;  display: none;  }
        .fans_list_box.mob-fans-list-box{  position: absolute;  margin-top:-180px;  -webkit-transform: translate(-50%);-ms-transform: translate(-50%);transform: translate(-50%); height:360px; width:80%; margin-left:0;  }
        .fans_hd{  padding:10px 0;  background: #D71920;border-radius:4px 4px 0 0 ;position: relative;  }
        .fans_head{overflow: hidden;width: 120px; margin:0 auto;  }
        .fans_head li{  float: left; width:60px;text-align: center;background-color:rgba(0,0,0,0.5);cursor:pointer;  }
        .fans_head .icon-venus,.fans_head .icon-mars{  color:#F64A34;font-size: 14px;padding-left: 3px;  }
        .fans_head .woman_btn{border-radius: 4px 0 0 4px;}
        .fans_head .man_btn{border-radius: 0 4px 4px 0;}
        .fans_head li.fans_head_cur{background-color:rgba(0,0,0,0.7);  }
        .fans_head li span{color:white; height:40px;line-height: 40px; font-size: 16px; font-family: "微软雅黑", "宋体"; }
        .fans_list_close{  position: absolute; right: 0px;top: 0px;width: 40px;text-align: center;height: 40px; cursor:pointer; color: white;font-size: 22px; line-height: 40px;  }
        /*.fans_list_close:hover{color:black;}*/
        .list_inner{height: 86%; background: black;border-left:1px solid #C7C9C8;overflow: auto;  }
        .fans_list{padding: 0 2% 10px;  }
        .fans_list li{height:66px; padding-top: 10px;width: 100%; border-bottom: 1px solid #D8D8D8;  }
        .fans_list li .fans_head_img{ width:46px;  }
        .fans_head_img img{ width:100%; height: 46px; }
        .fans_list li .fans_head_img img{border-radius: 50%;}
        .fl{ float: left;  }
        .fr{  float: right;  }
        .fans_text{padding:6px 0 0 10px;width: 65%; overflow: hidden; }
        .fans_text .nickname{line-height: 18px; font-size: 18px;font-weight: bold;padding-bottom: 8px; overflow: hidden; height: 18px; }
        .fans_text .text{  color:#B8B5B5;font-weight: bold;font-size:12px;height: 18px;line-height: 18px;margin-top: 4px; }
        .fans_tag_area{padding-top: 10px;width:16%;  }
        .fans_tag_area a{  display: block; width: 100%;font-size: 30px;color: #F64A34;  }
        /*.fans_tag_area a:hover{color:#F74C92;}*/
        #fans_list_man{display: none;  }
        #fans_list_woman{display: block;  }
        .fans_bd{ height:100%;  }
        .add_height{ height:10px; background: #f8f8f8;  }
        .icon-spinner{font-size: 24px;}
        .pullUp{margin: 0 auto;  }
        .pullUp_woman{display:table;}
        .pullUp_man{display:none;}
        .pullUpLabel{font-size:14px;padding-left:14px;}
        .pullUp.loading .icon-spinner {
            background-position:0 100%;
            -webkit-transform:rotate(0deg) translateZ(0);
            -webkit-transition-duration:0ms;

            -webkit-animation-name:loading;
            -webkit-animation-duration:1s;
            -webkit-animation-iteration-count:infinite;
            -webkit-animation-timing-function:linear;
        }

        @-webkit-keyframes loading { from { -webkit-transform:rotate(0deg) translateZ(0); } to { -webkit-transform:rotate(360deg) translateZ(0); } }
        .tag_loading{position:absolute;width:100px;color:#1D6699;left:50%;margin-left:-50px;top:50%;text-align:center;font-size:30px;display:none;}
    </style>
</head>
<body>
<!--<div id="panoDIV" style="width:100%;height:100%;" data-role="page"><noscript> <table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;"> 错误:<br /><br />Javascript 没有激活<br /><br /> </div> </td></tr></table></noscript></div>-->
<div id="pano-container" style="width:100%;height:100%;"></div>
<script src="http://cdn.bigpixel.cn/libs/krpano/1.18.4/tour.js"></script>
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="/scripts/bigpixel.base.js"></script>
<!--<script src="/scripts/bigpixel.usertags.js"></script>-->
<script src="/scripts/bigpixel.panoviewer.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    //    var viewer = createPanoViewer({html5:"only", id:"panoSWFObject", target:"panoDIV"});
    //    viewer.addVariable("xml", "/panos/huawei/tour-mobile.xml");
    //    viewer.embed();
//    var viewer = createPanoViewer({swf:"/panos/huawei/tour.swf",html5:"prefer", id:"panoSWFObject", target:"panoDIV"});
//    viewer.addVariable("xml", "/panos/huawei/tour-mobile.xml");
//    viewer.embed();
    bpsviewer=new BigPixelViewer('/panos/huawei/tour-mobile.xml','anta');
    document.bpsviewer=bpsviewer;   //添加到document的对象中  ??
    bpsviewer.embed();
</script>

<div class="comment-modal-mobile   wx_n" >
    <p style="float: left" class="no_wx_p hidden">微信中打开才能留言哟!</p>
    <a href="javascript:void(0);" class="no_wx_cancel hidden cancel" style="float: right">知道了</a>
    <ul class="comment_ul">
        <li ><a href="javascript:void(0);" class="login">授权登录</a></li>
        <li><a href="javascript:void(0);" class="cancel">取消</a></li>
    </ul>

</div>
<div class="comment-modal-mobile   wx_y" >
    <!--<p style="float: left">微信中打开才能留言哟!</p>-->
    <input type="text" placeholder="你想要说的话" maxlength="15">
    <ul class="comment_ul">
        <li class="comment_li"><a href="javascript:void(0);" class="cur sure">确定</a></li>
        <li><a href="javascript:void(0);" class="cancel">取消</a></li>
    </ul>
</div>
<!--ajax加载html文件-->
<div class="load_big">
    <div class="load_inner" id="dialog"></div>
    <div class="load_close"></div>
</div>
<!--粉丝开始-->
<!--男粉与女粉列表页-->
<div class="fans_list_box">
    <div class="fans_hd">
        <ul class="fans_head">
            <li class="fans_head_cur woman_btn"><span>女粉</span><spna class="icon-venus"></spna></li>
            <li class="man_btn"><span>男粉</span><spna class="icon-mars"></spna></li>
        </ul>
        <div class="fans_list_close"><span class="icon-close"></span></div>
    </div>
    <div class="list_inner">
        <div class="fans_bd">
            <ul id="fans_list_woman" class="fans_list">
                <!--<li>-->
                <!--<div class="fans_head_img fl"><img src="/panos/sh-zfan/imgs/hd.jpg" width="100%"/></div>-->
                <!--<div class="fans_text fl">-->
                <!--<p class="nickname">小妮</p>-->
                <!--<p class="text">我在这里啊啊啊啊十二个字</p>-->
                <!--</div>-->
                <!--<div class="fans_tag_area fr">-->
                <!--<a class="zoom_self fl" href="http://tectest.bigpixel.cn/fans/?share_id=oNElXxHCOTcPV8E9x6OMJ8WqpY3E"><span class="icon-crosshairs"></span></a>-->
                <!--</div>-->
                <!--</li>-->
            </ul>
            <ul id="fans_list_man" class="fans_list">

            </ul>
            <div class="pullUp_woman pullUp">
                <span class="icon-spinner"></span><span class="pullUpLabel">加载更多...</span>
            </div>
            <div class="pullUp_man pullUp">
                <span class="icon-spinner"></span><span class="pullUpLabel">加载更多...</span>
            </div>
        </div>
    </div>
    <div class="add_height" ></div>
</div>
<div class="tag_loading"><p>Loading...</p></div>
<script type="text/javascript">
    //定义用户信息
    var wx_nikename = '<%= wxUser.nickname %>';
    var wx_ownerurl = '<%= wxUser.headimgurl %>';
    var wx_openid = '<%= wxUser.openid %>';
    var flag='<%=wxUser.flag %>';             //弹出对话框标签
    var wx_sex = '<%= wxUser.sex %>';

    var use_name='我';
    var socialinfo;
    var tag_pic_url='/huawei/getpic?url='+wx_ownerurl.replace('/0','/46');
    var arr_tags=[];
    var lone_name=[];
    $(".comment_ul .login").click(function(){
        $(".wx_n").slideUp(100);
        nav_show();
    });
    $(".cancel").click(function(){
        $(".wx_n").slideUp(100);
        $(".wx_y").slideUp(100);
        nav_show();
        bpsviewer.call("set(hotspot[tagger].visible,false);");
    });
    $("input").bind("input propertychange",function(){
        if($(this).val().length>0){
            $(".comment_ul .comment_li a").removeClass("cur");
        }else{
            $(".comment_ul .comment_li a").addClass("cur");
        }
    });

    $(".comment_ul .comment_li .sure").click(function(){
        var text=$("input").val();
        //var textshort_len=fucCheckLength(text);
        //var new_text_width='';
        if((text.length>0)&&(text!='你想要说的话')){
            bpsviewer.call("create_tag("+wx_openid+","+text+","+wx_nikename+","+tag_pic_url+");");
            bpsviewer.call("set(hotspot[tagger].visible,false);");
            bpsviewer.call("set(plugin[new_tag_text].html,"+text+");");
            $(".wx_y").slideUp(100);
            nav_show();
            var tag_atv=bpsviewer.get("hotspot[tagger].atv");
            var tag_ath=bpsviewer.get("hotspot[tagger].ath");
            getposition_share_id(wx_openid);
            use_name=wx_nikename;
            adbiaozhu(tag_ath,tag_atv,text,0);
        }
    });
    //获取当前用户的id
    function getposition_share_id(share_id){
        var htmlpath = String(document.location);
        // alert(htmlpath);
        var qmark = htmlpath.indexOf("?");
        if (qmark > 0)
            htmlpath = htmlpath.substring(0,qmark);
        var parameters ="?share_id=" + share_id;
        var link = htmlpath + parameters;
        window.history.replaceState({},"huawei" ,link);
        socialinfo.link = window.location.href.replace(window.location.hash, '');
        initWechatShare();
    }
    //聚焦到标签所标注的地方
    var have_share_id=false;
    function lookarea(){
        var urlnow=window.location.href;
        // console.log('urlnow='+urlnow);
        if(urlnow.indexOf("share_id")!=-1){
            have_share_id=true;
            var query_url=window.location.search;
            //console.log('query_url='+query_url);
            var arr=query_url.split('=');
            var share_n=arr[1].replace('&from','');
            getbzbyopenid(share_n);
            //console.log('share_n='+share_n);
        }else{
            //console.log('wx_openid='+wx_openid);
            if(wx_openid!=''){
              //  getposition_share_id(wx_openid);
                getbzbyopenid(wx_openid);
            }else{
                <!--******这里要改hlookat，vlookat对应全景视图******-->
                krpano.call("lookto(-96.9,25.07,80);");
            }
        }
    }
    //根据openid获取标注信息
    function getbzbyopenid(openid){
        //console.log('getbzbyopenid='+openid)
        var _url="/huawei/getbzbyopenid/"+openid;
        $.bigpixel.AjaxGetJson(_url,function(err,data) {
            if (!err) {
                //返回的数据
                //console.log(JSON.stringify(data));
                if(data.length!=0){
                    looktoTag(data);
                    setTimeout(function(){
                        if(wx_openid!=''){
                            use_name=wx_nikename;
                            getposition_share_id(wx_openid);
                        }else{
                            use_name=data[0].nickname;
                        }
                       // console.log('use_name1='+use_name);
                        socialinfo = {
                            title:use_name+"在现场,拳释英雄拼手速，找星战icon赢邹市明签名T恤",
                            desc:"安踏倾力赞助邹市明“王者归来”拳击比赛，百亿像素大合照，快来找找还有谁？",
                            link:window.location.href.replace(window.location.hash, ''),
                            imgUrl:'http://tectest.bigpixel.cn/panos/huawei/imgs/anta_icon.jpg'
                        };
                        initWechatShare();
                    },2000);
                }
            }
        });
    }
    //用户标注、留言前端传值
    function adbiaozhu(tag_ath,tag_atv,text,last_text_width){
        var openid=wx_openid;
        var headimgurl=wx_ownerurl;
        var nickname=wx_nikename;
        var x=tag_ath;      //坐标X
        var y=tag_atv;      //坐标Y
        var notes=text;  //留言内容
        var text_width=last_text_width;
        //读取所有区域内用户标注数据
        $.ajax({
            type: "post",
            //方法所在页面和方法名
            url: "/huawei/setbiaozhu/",
            data:{openid:openid,x:x,y:y,notes:notes,width:text_width,nickname:nickname,headimgurl:headimgurl,sex:wx_sex},
            dataType: "json",
            success: function (data) {
                //读取_id数据
                $.ajax({
                    type: "get",
                    //方法所在页面和方法名
                    url: "/huawei/getbiaozhu/"+wx_openid,
                    data:{},
                    dataType: "json",
                    success: function (data) {

                    },
                    error: function (err) {
                        //alert(err);
                    }
                });
            },
            error: function (err) {

            }
        });
        bpsviewer.call("set(plugin[new_tag].url,"+tag_pic_url+");");
        bpsviewer.call("set(plugin[new_tag_name].html,"+nickname+");");
    }
    function tag_start(){
        showdialog();
        nav_hidden();
    }
    function showdialog(){
        if(wx_openid==''){
            $(".wx_n").slideDown(100);
        }else{
            $(".wx_y").slideDown(100);
            var atv = Number( bpsviewer.get("view.vlookat") );
            var ath   = Number( bpsviewer.get("view.hlookat") );
            bpsviewer.call("set(hotspot[tagger].visible,true);");
            bpsviewer.call("set(hotspot[tagger].ath,"+ath+");");
            bpsviewer.call("set(hotspot[tagger].atv,"+atv+");");
            bpsviewer.call("set(plugin[usericon_avatar].url,"+tag_pic_url+");");
        }
    }
    function nav_show(){
        bpsviewer.call('set(plugin[tag_home_btn].visible,true);')
    }
    function nav_hidden(){
        bpsviewer.call('set(plugin[tag_home_btn].visible,false);')
    }
    //    隐藏所有标签
    var arr_current_before=0;
    var arr_current_after=0;
    var hid_flag=false;
    function curren_tags_hidden(){
        for(var i=arr_current_before;i<=arr_current_after;i++){
            bpsviewer.call("set(hotspot["+arr_tags[i]+"].visible,false);");
        }
        for(var i=0;i<lone_name.length;i++){
            bpsviewer.call("set(hotspot["+lone_name[i]+"].visible,false);");
        }
       // $(".eye p").html("SHOW"); $(".eye i").addClass("icon-eye").removeClass("icon-eye-slash");
        hid_flag=true;
    }
    function curren_tags_show(){
        for(var i=arr_current_before;i<=arr_current_after;i++){
            bpsviewer.call("set(hotspot["+arr_tags[i]+"].visible,true);");
        }
        for(var i=0;i<lone_name.length;i++){
            bpsviewer.call("set(hotspot["+lone_name[i]+"].visible,true);");
        }
        //$(".eye p").html("HIDDEN");$(".eye i").addClass("icon-eye-slash").removeClass("icon-eye");
        hid_flag=false;
    }
    //SVR代码开始
    //界面初始化
    var name_length=0;
    var per_page_tag_num=20;
    var page_tag=0;
    var ownurl='';
    var getinfoskipFlag=true;
    //分页查询
    function getinfoskip(page_tag){
        $(".tag_loading").css("display","block");
        if(page_tag>0){
          var arr_index_before=(page_tag-1)*per_page_tag_num;   //当前页的上一页的前索引
           var arr_index_after=page_tag*per_page_tag_num;
            arr_current_before=page_tag*per_page_tag_num;    //当前页的前索引
            arr_current_after=(page_tag+1)*per_page_tag_num;
            for(var i=arr_index_before;i<arr_index_after;i++){
                bpsviewer.call("set(hotspot["+arr_tags[i]+"].visible,false);");
            }
        }else{
            arr_current_before=0;
            arr_current_after=per_page_tag_num;
        }
        var  Tag_index=page_tag*per_page_tag_num;
        var _url="/huawei/querybiaozhu/?skip="+Tag_index+"&limit="+per_page_tag_num;
        $.bigpixel.AjaxGetJson(_url,function(err,data) {
            if (!err) {
                //返回的数据
                //console.log(JSON.stringify(data));
                if(data.length==0&&getinfoskipFlag){
                    page_tag=0;
                    arr_current_before=0;
                    arr_current_after=per_page_tag_num;
                    getinfoskipFlag=false;
                    getinfoskip(0);
                    page_tag++;
                }
                if(data.length>0){getinfoskipFlag=true;}
                for(var i=0;i<data.length;i++){
                    var imgurl='/huawei/getpic?url='+data[i].headimgurl.replace('/0','/46');
                    bpsviewer.call("create_tag_table("+data[i].openid+","+data[i].notes+","+data[i].nickname+","+imgurl+","+data[i].x+","+data[i].y+");");
                    var name_arr='new_tag_bar'+data[i].openid;
                    arr_tags.push(name_arr);
                }
                $(".tag_loading").css("display","none");
            }
        });
    }
function refreshTags(){
    page_tag++;
    getinfoskip(page_tag);
}
    function dialog_open(){
        if(flag=='1'&&(wx_openid!='')){
            //弹出对话框
            var atv = Number( bpsviewer.get("view.vlookat") );
            var ath   = Number( bpsviewer.get("view.hlookat") );
            bpsviewer.call("set(hotspot[tagger].visible,true);");
            bpsviewer.call("set(hotspot[tagger].ath,"+ath+");");
            bpsviewer.call("set(hotspot[tagger].atv,"+atv+");");
            bpsviewer.call("set(plugin[usericon_avatar].url,"+tag_pic_url+");");
            bpsviewer.call('set(plugin[tag_home_btn].visible,false);');
            $(".wx_y").slideDown(100);
            flag='';
            nav_hidden();
            //bpsviewer.call("set(plugin[welcom_page].visible,false);");
            bpsviewer.call("set(layer[cover_hei].visible,false);");
            getinfoskip(0);
        }else{
            bpsviewer.call("welcom_start();");
        }
    }
    var system ={
        win : false,
        mac : false,
        xll : false
    };
    //检测平台
    var p = navigator.platform;
    system.win = p.indexOf("Win") == 0;
    system.mac = p.indexOf("Mac") == 0;
    system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
    $(".login").click(function(){
        if(system.win||system.mac||system.xll){
            // window.location.href="login.jsp";
            $.ajax({
                type: "get",
                url:" /huawei/savebiaozhu",
                dataType: "json",
                data:'',
                success: function (data) {
                    //跳转到微信登录
                    window.location.href='https://open.weixin.qq.com/connect/qrconnect?appid=wx52cb16abd04ebee3&redirect_uri=http://tectest.bigpixel.cn/huawei/callback&response_type=code&scope=snsapi_login&state=statebigpixel#wechat_redirect';
                    window.event.returnValue=false;
                },
                error: function (err) {
                    //alert("微信登录失败，请稍后再试");
                }
            });
        }else{
            $.ajax({
                type: "get",
                url:" /huawei/savebiaozhu",
                dataType: "json",
                data:'',
                success: function (data) {
                    //跳转到微信登录
                    var url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx52cb16abd04ebee3&redirect_uri=http://tectest.bigpixel.cn/huawei/callback&response_type=code&scope=snsapi_login#wechat_redirect";

                    location.href =url;
                },
                error: function (err) {
                    //alert("微信登录失败，请稍后再试");
                }
            });
        }
    });
    //SVR代码结束
//    粉丝---------------------start
    //点击fans按钮生成列表-start
    var woman_flag=true;
    var man_flag=true;
    var woman_page=0;
    var man_page=0;
    var pullUp_man_flag=false;
    var pullUp_woman_flag=false;
    var active_who_page=true;
    function create_fans_list(){
        $(".fans_list_box").css("display","block");
        bpsviewer.call("set(layer[cover_hei].visible,true);");
        if(woman_flag){
            getfemale();
        }
    }

    //获取粉丝窝(男粉)
    function getmale(){
        var man_fans_html='';
        var limit_num=6;
        var male_index=man_page*limit_num;
        var _url = "/huawei/querybiaozhu/?skip="+male_index+"&limit="+limit_num+"&gendar=1";
        $.bigpixel.AjaxGetJson(_url,function(err,data) {
            if (!err) {
                //console.log(data);
                var list_data=data;
                if(list_data.length!=0){
                    for(var i=0;i<list_data.length;i++){
                        // console.log(data[i].userinfo.headimgurl);
                        var usename=list_data[i].nickname;
                        if(usename.length>=5) {
                            usename = usename.substring(0, 5);
                        }
                        var strtaginfo = JSON.stringify(list_data[i]);
                        var url_head='/huawei/getpic?url='+list_data[i].headimgurl.replace('/0','/46');
                       // man_fans_html+=  '<li><div class="fans_head_img fl"><img src="'+list_data[i].headimgurl.replace("/0","/46")+'"/></div>\
                        man_fans_html+=  '<li><div class="fans_head_img fl"><img src="'+url_head+'"/></div>\
					<div class="fans_text fl"><p class="nickname">'+usename+'</p><p class="text">'+list_data[i].notes+'</p></div>\
					<div class="fans_tag_area fr"><a class="zoom_self fl" href="javascript:void(0);" onclick=\'looktoTag('+strtaginfo+')\'><span class="icon-crosshairs"></span></a></div></li>';
                    }
                    $("#fans_list_man").append(man_fans_html  );
                    var list_man_h=parseInt($("#fans_list_man").height());
                    if(list_man_h>300){
                        $(".pullUp_man").css("display","table");
                        pullUp_man_flag=true;
                        $(".pullUp_man .pullUpLabel").html('加载更多...');
                    }else{
                        $(".pullUp_man").css("display","none");
                    }
                }else{
                    if(man_page==0){
                        $(".pullUp_man").css("display","table");
                        pullUp_man_flag=true;
                        $(".pullUp_man .pullUpLabel").html('还没有更多男粉丝，来抢沙发吧');
                    }else{
                        $(".pullUp_man").css("display","none");
                    }
                }
                $(".pullUp_man").removeClass('loading');
            }
        });
        man_flag=false;
    }

    //获取粉丝窝(女粉)
    function getfemale(){
        var woman_fans_html='';
        var limit_num=6;
        var male_index=woman_page*limit_num;
//        var _url = "/service/panos/" + panoinfo.panoid + "/usertags?skip="+male_index+"&limit="+limit_num+"&gendar=2";
        var _url = "/huawei/querybiaozhu/?skip="+male_index+"&limit="+limit_num+"&gendar=2";
        $.bigpixel.AjaxGetJson(_url,function(err,data) {
            if (!err) {
                //console.log(JSON.stringify(data));
                var list_data=data;
                if(list_data.length!=0){
                    for(var i=0;i<list_data.length;i++){
                        // console.log(data[i].userinfo.headimgurl);
                        var usename=list_data[i].nickname;
                        if(usename.length>=5) {
                            usename = usename.substring(0, 5);
                        }
                        var strtaginfo = JSON.stringify(list_data[i]);
                        var url_head='/huawei/getpic?url='+list_data[i].headimgurl.replace('/0','/46');
                        //woman_fans_html+=  '<li><div class="fans_head_img fl"><img src="'+list_data[i].headimgurl.replace("/0","/46")+'"/></div>\
                        woman_fans_html+=  '<li><div class="fans_head_img fl"><img src="'+url_head+'"/></div>\
					<div class="fans_text fl"><p class="nickname">'+usename+'</p><p class="text">'+list_data[i].notes+'</p></div>\
					<div class="fans_tag_area fr"><a class="zoom_self fl" href="#" onclick=\'looktoTag('+strtaginfo+')\'>\
					<span class="icon-crosshairs"></span></a></div></li>';
                    }
                    $("#fans_list_woman").append(woman_fans_html  );
                    var list_woman_h=parseInt($("#fans_list_woman").height());
                    if(list_woman_h>300){
                        $(".pullUp_woman").css("display","table");
                        pullUp_woman_flag=true;
                        $(".pullUp_woman .pullUpLabel").html('加载更多...');
                    }else{ $(".pullUp_woman").css("display","none"); }
                }else{
                    if(woman_page==0){
                        $(".pullUp_woman").css("display","table");
                        pullUp_woman_flag=true;
                        $(".pullUp_woman .pullUpLabel").html('还没有更多女粉丝，来抢沙发吧');
                    }else{
                        $(".pullUp_woman").css("display","none");
                    }
                }
                $(".pullUp_woman").removeClass('loading');
            }
        });
        woman_flag=false;
    }
    //女粉丝按钮点击
    $(".woman_btn").click(function(){
        active_who_page=true;
        $("#fans_list_woman").css("display","block");
        $("#fans_list_man").css("display","none");
        $(".pullUp_man").css("display","none");
        if(pullUp_woman_flag){
            $(".pullUp_woman").css("display","table");
        }else{$(".pullUp_woman").css("display","none");}
        $(this).addClass("fans_head_cur").siblings().removeClass("fans_head_cur");
    });
    //男粉丝按钮点击
    $(".man_btn").click(function(){
        active_who_page=false;
        $(".pullUp_woman").css("display","none");
        if(pullUp_man_flag){
            $(".pullUp_man").css("display","table");
        }else{$(".pullUp_man").css("display","none");}
        if(man_flag){
            getmale();
            $("#fans_list_woman").css("display","none");
            $("#fans_list_man").css("display","block");
        }else{
            $("#fans_list_man").css("display","block");
            $("#fans_list_woman").css("display","none");
        }
        $(this).addClass("fans_head_cur").siblings().removeClass("fans_head_cur");
    });
    //男女粉丝列表关闭
    $(".fans_list_close").click(function(){
        $(".fans_list_box").css("display","none");
       // $(".cover_hei").css("display","none");
        bpsviewer.call("set(layer[cover_hei].visible,false);");
    });
    //点击fans按钮生成列表end
    //列表页滚动条滚动到底部触发事件-start
    var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度)
    var nScrollTop = 0; //滚动到的当前位置
    $(".list_inner").scroll(function(){
        var nDivHight = $(".fans_list_box .list_inner").height();
        var nDivHight_game = $(".game_list_box .list_inner").height();
        nScrollHight = $(this)[0].scrollHeight;
        nScrollTop = $(this)[0].scrollTop;
        if((nScrollTop + nDivHight) >= nScrollHight){
            if(active_who_page){
                //console.log('滚动触发女粉');
                woman_page++;
                $(".pullUp_woman").addClass('loading'); $(".pullUp_woman .pullUpLabel").html('Loading...');
                getfemale();
            }else{
                //console.log('滚动触发男粉');
                man_page++;
                $(".pullUp_man").addClass('loading'); $(".pullUp_man .pullUpLabel").html('Loading...');
                getmale();
            }
        }
    });
    function looktoTag(taginfo){
        //console.log(taginfo[0].openid)
        $(".fans_list_box").css("display","none");
        bpsviewer.call("set(layer[cover_hei].visible,false);");
        var taginfo=taginfo[0]?taginfo[0]:taginfo;
        var active_tag='new_tag_bar'+taginfo.openid;
        var arrTags_flag=false;
        for(var i=0;i<arr_current_after;i++){
            if(active_tag==arr_tags[i]){
                arrTags_flag=true;
                bpsviewer.call("set(hotspot["+active_tag+"].visible,true);");
                break;
            }
        }
        //console.log('arrTags_flag='+arrTags_flag);
        if(!arrTags_flag){
            bpsviewer.call("create_tag_table(" + taginfo.openid + "," +taginfo.notes + "," +taginfo.nickname + "," + taginfo.headimgurl + "," + taginfo.x + "," + taginfo.y +");");
            lone_name.push(active_tag);
        }
       // bpsviewer.call("lookto(" + taginfo.x + "," + taginfo.y + ",2,smooth(100,50,20));");
        bpsviewer.call("zoomto(60,linear(50));moveto("+taginfo.x+","+taginfo.y+",linear(60));Wait(0.5);zoomto(2,linear(50));");
    }

    //列表页滚动条滚动到底部触发事件-end
//    粉丝---------------------end

</script>
<script>
    //<!--游戏开始-------------------->
    function game_goPage(){
        curren_tags_hidden();
        bpsviewer.call('set(plugin[menu_home_btn].visible,false);');
        bpsviewer.call('set(plugin[tag_home_btn].visible,false);');
        bpsviewer.call('set(plugin[fans_refresh_btn].visible,false);');
        bpsviewer.call('set(plugin[fans_show_hide_btn].visible,false);');
        bpsviewer.call('set(plugin[menu_home_btn].visible,false);');
        bpsviewer.call(' set(layer[top_banner_bg].visible,false);');
        bpsviewer.call(' set(plugin[top_ban_game].visible,true);');
        curren_game_hot_show();
    }
    //隐藏当前所有的小黑人的hot
    function curren_game_hot_hidden(){
        for(var i=1;i<=20;i++){
            bpsviewer.call("set(hotspot[game_hot"+i+"].visible,false);");
        }
    }
    //显示当前用户还没有点击的小黑人的hot
    var curren_game_show=true;
    var clicked_game_hot=[];
    function curren_game_hot_show(){
        if(curren_game_show){
            bpsviewer.call("create_game_hots();");
            curren_game_show=false;
        }else{
            for(var i=1;i<=20;i++){
                bpsviewer.call("set(hotspot[game_hot"+i+"].visible,true);");
            }
        }
    }

    //点击第一个或最后一个小黑人时的提示框
    function game_hots_tip(num1){
        if(num1==1){$(".start_game_tip").css("display","block");}else if (num1==20){   $(".end_game_tip").css("display","block");}
    }
    function fans_goPage(){
        curren_tags_show();
        bpsviewer.call('set(plugin[menu_home_btn].visible,true);');
        bpsviewer.call('set(plugin[tag_home_btn].visible,true);');
        bpsviewer.call('set(plugin[fans_refresh_btn].visible,true);');
        bpsviewer.call('set(plugin[fans_show_hide_btn].visible,true);');
        bpsviewer.call('set(plugin[menu_home_btn].visible,true);');
        bpsviewer.call(' set(layer[top_banner_bg].visible,true);');
        bpsviewer.call(' set(plugin[top_ban_game].visible,false);');
        curren_game_hot_hidden();
        bpsviewer.call("set(hotspot[click_firsthot].visible,false);");
    }
    <!--------------------游戏end-->
    socialinfo = {
        title:use_name+"在现场,拳释英雄拼手速，找星战icon赢邹市明签名T恤",
        desc:"安踏倾力赞助邹市明“王者归来”拳击比赛，百亿像素大合照，快来找找还有谁？",
        link:window.location.href.replace(window.location.hash, ''),
        imgUrl:'http://tectest.bigpixel.cn/panos/huawei/imgs/anta_icon.jpg'
    };
    //分享初始化
    //分享初始化
    function initWechatShare() {
        $.ajax({
            type: "get",
            url:" /huawei/wxsign?url="+encodeURIComponent(socialinfo.link),
            dataType: "json",
            async: false,
            data:'',
            success: function (signdata) {
                console.log(signdata);
//                console.log('appid:'+signdata.appid);
//                console.log('timestamp:'+signdata.timestamp);
//                console.log('nonceStr:'+signdata.nonceStr);
//                console.log('signature:'+signdata.signature);
//                console.log('url:'+socialinfo.link);
                wx.config({
                    debug: false,
                    appId: signdata.appid,
                    timestamp: signdata.timestamp,
                    nonceStr: signdata.nonceStr,
                    signature: signdata.signature,
                    jsApiList: ['onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareAppMessage', 'onMenuShareWeibo']
                });
                wx.ready(function () {
                    wx.onMenuShareTimeline(socialinfo);
                    wx.onMenuShareAppMessage(socialinfo);
                    wx.onMenuShareQQ(socialinfo);
                    wx.onMenuShareWeibo(socialinfo);
                });
            },
            error: function (err) {
                console.log("微信分享初始化失败！");
            }
        });
    };
    $(document).ready(function(){
        initWechatShare();
    });


    <!-- *****获得pano的坐标值开始-start    可删除 *****-->
    function getlookat()
    {
        if (bpsviewer && bpsviewer.get)	// it can take some time until krpano is loaded and ready
        {
            bpsviewer.call("screentosphere(mouse.x, mouse.y, mouseath, mouseatv)");

           // var mouse_at_x = krpano.get("mouse.x");
            //var mouse_at_y = krpano.get("mouse.y");
            var mouse_at_h = bpsviewer.get("mouseath");
            var mouse_at_v = bpsviewer.get("mouseatv");

            var ath= mouse_at_h;
            var atv= mouse_at_v;
        }
         console.log("ath= "+ath);
         console.log("atv= "+atv);
        // console.log("fov="+fov);
    }
    //var lookat_interval = setInterval('getlookat()',500);
   <!--***** 获得pano的坐标值开始-end    可删除 *****-->


</script>
<!-- 谷歌、百度统计代码 -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-56983622-4');ga('send', 'pageview');
    var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?00e4d98773c02201bbd493815c0cb964"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
</script>
</body>
</html>